﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GradeBook
{
    class GradeBook
    {
        //public string courseName; // course name for this GradeBook

        //public string CourseName
        //{
        //    set
        //    {
        //        courseName = value;
        //    }//end set
        //    get
        //    {
        //        return courseName;
        //    }//end get
        //}//end property CourseName

        //auto-implemented property CourseName implicity creates   implement--执行   implicity--暗中的？
        //an instance variable for this GradeBook's course name
        public string CourseName { get; set; } //input "prop" and click Tab twice

        public void DisplayMessage()
        {
            Console.WriteLine("Welcome to the grade book for:\n{0}",CourseName);
        }//end method DisplayMessage
    }
}
